//
//  ViewController.m
//  桥接模式
//
//  Created by flannery on 2018/12/19.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import "ViewController.h"
#import "Shape.h"
#import "DrawAPI.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    Shape *redCircle = [[Circle alloc] initWithX:100 Y:100 radius:10 drawAPI:RedCircle.new];
    Shape *greenCircle = [[Circle alloc] initWithX:100 Y:100 radius:10 drawAPI:GreenCircle.new];
    
    [redCircle draw];
    [greenCircle draw];
}


@end
